<?php

class StylableTrait
{
	public $Style = '';
	
	public function InitStylable( )
	{
		if( isset( $this->Style ) )
		{
			if( is_string( $this->Style ) )
			{
				$this->Style = new Style( $this->Style );
			}
			else if( !( is_object( $this->Style ) && get_class( $this->Style ) == 'Style' ) )
			{
				$this->Style = new Style( );
			}
		}
		else
		{
			$this->Style = new Style( );
		}
	}
}
